{# Overseer > Deployments > Overview's card (overseer_deployments._deployed), one of four views. A deployed server says where redeploys come from. Without a server yet, the way to one (New server); one being made, the way to it there. With a server, the server, what can be asked of ``aegis deploy-agent`` for it (deploys in one menu; rehearsing, rolling back and destroying folded into More), and, while one runs, its newest job (whole under Jobs). #} {% from "components/macros/layout.html" import card, dropdown, facts %} {% from "pages/overseer/deployments/_macros.html" import agent_note, ask, ask_item, deployed_card, destroy_form, goto, job_panel, note, place %} {% if actions.view == "deployed" %} {{ deployed_card(actions) }} {% elif actions.view == "no-server" %} {% call card("Your server", id="card-deploy") %}

No server yet: {{ goto(new_url, "New server") }} walks you to one.

{% endcall %} {% elif actions.view == "creating" %} {% call card("Your server", id="card-deploy") %}

A server is being created: {{ goto(new_url, "New server") }} shows where it is.

{% endcall %} {% else %} {# What it can do hides while its job runs (``data-locks``, input.css). #}
{% call card("Your server", id="card-deploy") %} {{ place(actions.server) }} {{ facts(actions.server.facts) }} {% if actions.agent.state == "ready" %} {% with live = actions.live %}{% include "pages/overseer/deployments/_live.html" %}{% endwith %} {% with storage = actions.storage %}{% include "pages/overseer/deployments/_storage.html" %}{% endwith %}
{# Both deploys behind one menu, each saying what it costs. #} {% call dropdown("Deploy", align="left") %} {{ ask_item("Deploy", actions.partials, "deploy", hint="Restarts everything; a moment offline") }} {# Additive migrations only. #} {{ ask_item("Deploy without downtime", actions.partials, "deploy-rolling", hint="Site stays up, nobody signed out") }} {% endcall %} {{ ask("Back up now", actions.partials, "backup") }} {# Rehearsing a restore, rolling back and destroying are rare: folded into a menu, asked there. #} {% call dropdown("More", align="left") %} {% if actions.drill %}{{ ask_item(actions.drill.label, actions.partials, actions.drill.verb) }}{% endif %}
  • {% with r = actions.rollback %}{% include "pages/overseer/deployments/_rollback.html" %}{% endwith %}
  • {% if actions.destroy %}
  • {{ destroy_form(actions.partials, actions.destroy) }}
  • {% endif %} {% endcall %}
    {{ job_panel(actions) }} {% endif %} {{ agent_note(actions.agent) }} {% endcall %}
    {% endif %}